package com.yeban.javase.day04.test02;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/10/12
 */
public class Manager extends Employee implements Add{

    private String level;

    public Manager() {
    }

    public Manager(String name, String address, String id, double wage, int workAge, String level) {
        super(name, address, id, wage, workAge);
        this.level = level;
    }

    @Override
    public void addWage() {
        setWage(getWage() * 1.2);
    }

    @Override
    public String toString() {
        return super.toString() + "等级：" + level;
    }
}
